<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<script type="text/javascript">
$(function() {
	$(".sumonTrain").click(function() {
				var saletrantakeid = $(this).attr("val");//获取当前下的属性val值
					var url = "${path}/productandtrain/lecturer/index/upd/"+saletrantakeid; 
					$.get(url,null,function(result){
						art.dialog( { 
								lock : true, 
								ok:function(){
									art.dialog( {
										id : "loading",
										lock : true,
										drag : false,
										resize : false,
										title : "正在总结..."
									});
									var url1 = "${path}/productandtrain/lecturer/index/updsum";
									var data={
										saletrantakeid : $("#showWindow .hidtakeId").val(),
										sumup : $("#showWindow .sumupText").val(),
										trainsort : $("#showWindow .gradeAvg").html()
									};
								
									$.post(url1, data, function(result) {
										art.dialog( {
											id : 'loading'
										}).close();//关闭等待框
											if (result == "true") {
												art.dialog( {
													icon : "succeed",
													content : "总结成功!",
													lock : true,
													ok : function() {
														location.reload();
													}
												});
											} else {
												art.dialog( {
													icon : "error",
													content : "总结失败!",
													lock : true,
													ok : true
												});
											}	
										});
					
									return true;
								},
								cancel:"关闭"
							}).content(temp.html());								
					});						 
				});
});
</script>
	</head>
	<body id="master">
		<div id="hidWindow" style="display: none;">
		<div class="sumupDiv">
			<table>
				<tr>
					<td>参加人数</td>
					<td><span class="joinCount"></span></td>
				</tr>
				<tr>
					<td>评分人数</td>
					<td><span class="gradeCount"></span></td>
				</tr>
					<tr><td>平均分</td>
					<td><span class="gradeAvg"></span></td>
				</tr>
				<tr>
					<td>总结</td>
					<td><input type="text" class="sumupText" />
					<input type="hidden" class="hidtakeId"/>
					</td>
				</tr> 
			</table>
		</div>
		</div>
	</body>
</html>